﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JAAF.Builders;
using System.Windows.Controls;

namespace JAAF.UI.WPF
{
    public class ViewBuilder: ReflectionBuilder
    {
        public ViewBuilder()
            :base(ObjectFactory.Builder)
        {

        }

        public override object Create(string _sAbstraction = null, params object[] _aoConstructorParams)
        {
            Control oView = (Control)base.Create(_sAbstraction, _aoConstructorParams);

            ViewAdapter oAdp = new ViewAdapter((Control)oView);

            return oAdp;
        }
    }
}
